package cn.itsub.sodo.action.base;


/**
 * 限定时间的动作
 */
public class FiniteTimeAction extends Action {

  	// 动作从开始到完成需要多少秒
    protected float duration;

    public static FiniteTimeAction action(float d) {
        return new FiniteTimeAction(d);
    }

    protected FiniteTimeAction(float d) {
        duration = d;
    }

    public float getDuration() {
        return duration;
    }

    public void setDuration(float duration) {
        this.duration = duration;
    }

    @Override
    public FiniteTimeAction copy() {
        return new FiniteTimeAction(duration);
    }

	@Override
	public void step(float dt) {
		// TODO Auto-generated method stub
	}

	@Override
	public void update(float time) {
		// TODO Auto-generated method stub
	}
}
